package com.gmu.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gmu.pojo.TblActivities;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 测核酸活动 Mapper 接口
 * </p>
 *
 * @author testjava
 * @since 2022-07-24
 */
public interface TblActivitiesMapper extends BaseMapper<TblActivities> {

    TblActivities selectByIdAndStatus(@Param("activitiesId") Integer activitiesId,@Param("status") Integer status);

    List<TblActivities> showReservationActivities(@Param("parentUnitsId") Integer parentUnitsId);

    List<TblActivities> getAllActivitiesByPage(Map<String,Object> map);

    List<TblActivities> getAllActivitiesByStatus(Integer beSampleUnitsId);

    List<TblActivities> getAllActivitiesNotByStatus(Integer beSampleUnitsId);

    IPage<TblActivities> getActivityRecordList(Page<TblActivities> page, @Param("tblActivities") TblActivities tblActivities, @Param("beginTime") String beginTime,@Param("endTime") String endTime);

    int deleteRecord(Integer[] activitiesIds);

    List<TblActivities> getAllActivitiesByUnitsId(Integer unitsId);

    List<TblActivities> getAllActivitiesHeld(Integer parentUnitsId);

    List<TblActivities> getRecordList(@Param("tblActivities") TblActivities tblActivities,@Param("beginTime") String beginTime,@Param("endTime") String endTime);
}
